package cn.silver.module.message.domain;

import cn.silver.framework.core.utils.DateUtils;
import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.util.Date;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@Table(name = "msg_message_record")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "MsgMessageRecord", title = "系统消息通知-消息发送记录")
public class MsgMessageRecord extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 消息ID
     */
    @Schema(title = "消息ID")
    private String msgId;
    /**
     * 发送渠道
     */
    @Schema(title = "发送渠道")
    private String channel;
    /**
     * 接收人信息
     */
    @Schema(title = "接收人信息")
    private String receiver;
    /**
     * 接收人信息
     */
    @Schema(title = "接收人信息")
    private String userId;
    /**
     * 接收人信息
     */
    @Schema(title = "接收人信息")
    private String userName;
    /**
     * 接收账号
     */
    @Schema(title = "接收账号")
    private String account;
    /**
     * 推送时间
     */
    @Schema(title = "推送时间")
    @JsonFormat(timezone = DateUtils.TIME_ZONE, pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    private Date sendTime;
    /**
     * 推送结果
     */
    @Schema(title = "推送结果")
    private String result;
    /**
     * 响应信息
     */
    @Schema(title = "响应信息")
    private String message;
    /**
     * 返回内容
     */
    @Schema(title = "返回内容")
    private String content;
}
